package com.itlong.cloud.smartcard.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <desc>
 *      物业增值数据访问接口
 * </desc>
 *
 * @createDate 2019/06/13
 */
@Repository
@Mapper
public interface ISmartCardPropertyValueDao {
    /**
     * <desc>
     *      获取楼栋信息
     * </desc>
     *
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2019/06/13
     */
    List<Map<String,Object>> getBuildInfos(@Param("projectId") String projectId);

    /**
     * <desc>
     *      获取单元信息
     * </desc>
     *
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2019/06/13
     */
    List<Map<String,Object>> getUnitInfos(@Param("projectId") String projectId);

    /**
     * <desc>
     *      获取房间信息
     * </desc>
     *
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2019/06/13
     */
    List<Map<String,Object>> getRoomInfos(@Param("projectId") String projectId,@Param("currentPage") Integer currentPage,
                                          @Param("pageSize") Integer pageSize);

    /**
     * <desc>
     *      获取房间信息
     * </desc>
     *
     * @param projectId
     * @return
     * @author Jiaqi.X
     * @createDate 2019/06/13
     */
    Integer getRoomInfosCount(@Param("projectId") String projectId);

    /**
     * <desc>
     *      保存软卡号与房间绑定信息
     * </desc>
     *
     * @param roomId
     * @param softCardNo
     * @return
     * @author Jiaqi.X
     * @createDate 2019/05/13
     */
    Integer saveSoftCardNo(@Param("roomId") String roomId,@Param("softCardNo") String softCardNo,@Param("hardCardNo") String hardCardNo,@Param("fingerNo") String fingerNo);
}
